
package com.sxkj.service.member;

import com.github.pagehelper.PageInfo;
import com.sxkj.entity.entity.member.Member;
import com.sxkj.entity.mapper.member.MemberMapper;
import com.sxkj.service.base.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author daixiaowei
 *
 * @description: 会员
 * @date 2019-12-26 17:22:17
 */
@Service
public class MemberService extends BaseService<MemberMapper,Member> {

	/**
	* 获取单条数据
	* @param id
	* @return Member
	*/
	public Member get(String id) throws Exception{
		return super.get(id);
	}
	
	/**
	* 获取单条数据
	* @param member
	* @return Member
	*/
	public Member get(Member member) throws Exception{
		return super.get(member);
	}
	
	/**
	* 查询列表数据
	* @param member
	* @return List<Member>
	*/
	public List<Member> findList(Member member) throws Exception{
		return super.findList(member);
	}

	/**
	* 查询分页数据
	* @param member
	* @param pageSize
	* @param pageNum
	* @return Page
	*/
	public PageInfo findPage(Member member, Integer pageSize, Integer pageNum) throws Exception{
		return super.findPage(member, pageSize, pageNum);
	}

	/**
	* 保存数据（插入或更新）
	* @param member
	*/
	@Transactional(rollbackFor = Exception.class)
	public void save(Member member) throws Exception{
		super.save(member);
	}

	/**
	* 删除数据
	* @param member
	*/
	@Transactional(rollbackFor = Exception.class)
	public void delete(Member member) throws Exception{
		super.delete(member);
	}
}